This site mirrors the WordPress® plugin and theme directories as a Composer repository.
composer.jsonwpackagist-plugin or wpackagist-theme as
the vendor name.$ composer.phar updatewp-content/plugins/ or
wp-content/themes/ (unless otherwise specified by
installer-paths)
{
"name": "acme/brilliant-wordpress-site",
"description": "My brilliant WordPress site",
"repositories":[
{
"type":"composer",
"url":"http://wpackagist_org.waiyudaxue.com",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
]
}
],
"require": {
"aws/aws-sdk-php":"*",
"wpackagist-plugin/akismet":"dev-trunk",
"wpackagist-plugin/wordpress-seo":">=7.0.2",
"wpackagist-theme/hueman":"*"
},
"autoload": {
"psr-0": {
"Acme": "src/"
}
},
"extra": {
"installer-paths": {
"wp-content/mu-plugins/{$name}/": [
"wpackagist-plugin/akismet"
],
"wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
]
}
}
}
This example composer.json file adds the Wpackagist
repository and includes the latest version of Akismet (installed as
a must-use plugin), at least version 7.0.2 of Wordpress SEO, and the latest
Hueman theme along with the Amazon Web Services SDK from the main
Packagist repository.
Find out more about using Composer including custom install paths.
The old vendor prefix wpackagist is now
removed in favour of
wpackagist-plugin.
“Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.”— getcomposer.org
tags for each updated package and maps
those to versions.trunk as a dev version."*" as the required version.See
fancyguy/webroot-installer or
roots/wordpress for installing
WordPress® itself using Composer.
Please visit our GitHub page.
Follow @wpackagist
An Outlandish experiment.
The WordPress® trademark is the intellectual property of the WordPress Foundation. Uses of the WordPress® name in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation. WPackagist is not endorsed or owned by, or affiliated with, the WordPress Foundation.